package lib.bone.access.module.dict.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.persistence.Column;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotBlank;

@Getter
@Setter
@ToString
@ApiModel(value = "论文词典更新DTO")
public class NepuPaperDictUpdateDTO {

    @NotBlank(message = "论文/成果词典ID不可为空")
    @ApiModelProperty(value = "论文/成果词典ID",name = "id")
    String id;
    @NotBlank(message = "分类编码不可为空")
    @ApiModelProperty("分类编码")
    String code;
    @NotBlank(message = "论文类型不可为空")
    @ApiModelProperty(value = "论文类型",notes = "标志性论文等..")
    @Column(name = "paper_type")
    String paperType;

    @NotBlank(message = "论文级别不可为空")
    @ApiModelProperty(value = "论文级别",notes = "A.B.C")
    @Column(name = "paper_level")
    String paperLevel;

    @DecimalMin(value = "0",message = "最小工作量大于0")
    @ApiModelProperty(value = "工作量Min",notes = "获奖对应的最小工作量")
    Double workloadMin;
    @DecimalMin(value = "0",message = "最大工作量大于0")
    @ApiModelProperty(value = "工作量Max",notes = "获奖对应的最大工作量")
    Double workloadMax;

    @ApiModelProperty(value = "论文词典备注")
    @Column(name = "remark")
    String remark;
}
